<?php
declare (strict_types=1);

namespace app\admin\controller;

use app\admin\BaseController;
use app\admin\service\IndexService;
use think\App;
use think\Response;
use think\response\View;

class Index extends BaseController
{
    public function index(): View
    {
        return view('index/index');
    }

    public function home(): View
    {
        return view('index/home');
    }

    public function login(): View
    {
        return view('login/index');
    }

    public function getData(): Response
    {
        $ret = (new IndexService())->getIndexData();
        return echoJson($ret);
    }
}
